
import java.math.BigDecimal;
import java.util.*;
public class Main5 {
    private static Scanner in;
    public static void main(String[] args)
    {
        in=new Scanner(System.in);
        String a,b;
        while(true)
        {
            a=in.next();
            b=in.next();
            BigDecimal ak=new BigDecimal(a);
            BigDecimal bk=new BigDecimal(b);
            System.out.println(ak.add(bk));
            System.out.println(ak.multiply(bk));
        }

    }
}